css: Handle font-size changes properly
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Dec 2014 02:11:00 +0000 (21:11 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 24 Dec 2014 02:11:00 +0000 (21:11 -0500)
Changing font size does not cause widgets to update their size
properly anymore, since we forgot an invalidation flag. The
problem can be observed e.g. by running gtk3-demo and calling

gsettings set org.gnome.desktop.interface font-name "Cantarell 22"

gtk/gtkcssstylepropertyimpl.c

index 9725108f6124cb4e91c35bff0b2547bd17e82b80..467d22202fb0383bea38b0cf20753b38241f81c2 100644 (file)
@@ -967,7 +967,7 @@ _gtk_css_style_property_init_properties (void)
                                           GTK_CSS_PROPERTY_FONT_SIZE,
                                           G_TYPE_DOUBLE,
                                           GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
-                                          GTK_CSS_AFFECTS_FONT | GTK_CSS_AFFECTS_TEXT,
+                                          GTK_CSS_AFFECTS_FONT | GTK_CSS_AFFECTS_TEXT | GTK_CSS_AFFECTS_SIZE,
                                           font_size_parse,
                                           query_length_as_double,
                                           assign_length_from_double,